﻿#region NeoPatterns
// 
// NeoPatterns framework is released under LGPLv3 license.
// See http://www.opensource.org/licenses/lgpl-3.0.html for more details.
// 
// Please visit http://neopatterns.wikidot.com for more information about NeoPatterns
// 
// Copyright (c) Pascal Craponne 2008
// 
#endregion

using System;
using System.Runtime.Serialization;

namespace NeoPatterns.Exception
{
    /// <summary>
    /// Thrown when Register an already registered object (with same name)
    /// </summary>
    [Serializable]
    public class DuplicateNameException : RegistryException
    {
        public DuplicateNameException()
        {
        }

        public DuplicateNameException(string name)
            : base(name)
        {
        }

        public DuplicateNameException(string message, System.Exception innerException)
            : base(message, innerException)
        {
        }

        protected DuplicateNameException(SerializationInfo serializationInfo, StreamingContext streamingContext)
            : base(serializationInfo, streamingContext)
        {
        }
    }
}
